package com.xm.po;
/**
* @Description: 商品信息实体类
* @Author: Mr.Wang
* @Date: 2020/8/6
*/
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
public class Goods{
	//属性
	private Integer goodsId;
	//商品编号
	private String goodsSn;
	//商品名称
	private String goodsName;
	//商品图片
	private String goodsImg;
	//商品略缩图
	private String goodsThums;
	//品牌id
	private Integer brandId;
	//市场价
	private Double marketPrice;
	//店铺价格
	private Double shopPrice;
	//商品总库存
	private Integer goodsStock;
	//销售量
	private Integer saleCount;
	//是否接受预定 ->该字段基本无用
	private Integer isBook;
	//允许最大预定数量 ->该字段基本无用
	private Integer bookQuantity;
	//商品库存预警数量
	private Integer warnStock;
	//是否上架 0:不上架 1:上架
	private Integer isSale;
	//上架时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date saleTime;
	//是否精品 0否 1是
	private Integer isBest;
	//是否热销产品 0否 1是
	private Integer isHot;
	//是否新品 0否 1是
	private Integer isNew;
	//是否推荐 0不推荐 1推荐
	private Integer isAdminRecom;
	//促销信息
	private String recommDesc;
	//商品所属分类
	private Integer goodsTypeId;
	//商品描述
	private String goodsDesc;
	//商品SEO关键字
	private String goodsKeywords;
	//删除标志 -1删除 1有效
	private Integer goodsFlag;
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//构造器
	public Goods(){}

	public Goods(String key){
		this.goodsKeywords = key;
	}
	public Goods(Integer goodsId,String goodsSn,String goodsName,String goodsImg,String goodsThums,Integer brandId,Double marketPrice,Double shopPrice,Integer goodsStock,Integer saleCount,Integer isBook,Integer bookQuantity,Integer warnStock,Integer isSale,Date saleTime,Integer isBest,Integer isHot,Integer isNew,Integer isAdminRecom,String recommDesc,Integer goodsTypeId,String goodsDesc,String goodsKeywords,Integer goodsFlag,Date createTime){
		this.goodsId=goodsId;
		this.goodsSn=goodsSn;
		this.goodsName=goodsName;
		this.goodsImg=goodsImg;
		this.goodsThums=goodsThums;
		this.brandId=brandId;
		this.marketPrice=marketPrice;
		this.shopPrice=shopPrice;
		this.goodsStock=goodsStock;
		this.saleCount=saleCount;
		this.isBook=isBook;
		this.bookQuantity=bookQuantity;
		this.warnStock=warnStock;
		this.isSale=isSale;
		this.saleTime=saleTime;
		this.isBest=isBest;
		this.isHot=isHot;
		this.isNew=isNew;
		this.isAdminRecom=isAdminRecom;
		this.recommDesc=recommDesc;
		this.goodsTypeId=goodsTypeId;
		this.goodsDesc=goodsDesc;
		this.goodsKeywords=goodsKeywords;
		this.goodsFlag=goodsFlag;
		this.createTime=createTime;
}
	//getter setter方法
	public void setGoodsId(Integer goodsId){
		this.goodsId=goodsId;
	}
	public Integer getGoodsId(){
		return goodsId;
	}
	public void setGoodsSn(String goodsSn){
		this.goodsSn=goodsSn;
	}
	public String getGoodsSn(){
		return goodsSn;
	}
	public void setGoodsName(String goodsName){
		this.goodsName=goodsName;
	}
	public String getGoodsName(){
		return goodsName;
	}
	public void setGoodsImg(String goodsImg){
		this.goodsImg=goodsImg;
	}
	public String getGoodsImg(){
		return goodsImg;
	}
	public void setGoodsThums(String goodsThums){
		this.goodsThums=goodsThums;
	}
	public String getGoodsThums(){
		return goodsThums;
	}
	public void setBrandId(Integer brandId){
		this.brandId=brandId;
	}
	public Integer getBrandId(){
		return brandId;
	}
	public void setMarketPrice(Double marketPrice){
		this.marketPrice=marketPrice;
	}
	public Double getMarketPrice(){
		return marketPrice;
	}
	public void setShopPrice(Double shopPrice){
		this.shopPrice=shopPrice;
	}
	public Double getShopPrice(){
		return shopPrice;
	}
	public void setGoodsStock(Integer goodsStock){
		this.goodsStock=goodsStock;
	}
	public Integer getGoodsStock(){
		return goodsStock;
	}
	public void setSaleCount(Integer saleCount){
		this.saleCount=saleCount;
	}
	public Integer getSaleCount(){
		return saleCount;
	}
	public void setIsBook(Integer isBook){
		this.isBook=isBook;
	}
	public Integer getIsBook(){
		return isBook;
	}
	public void setBookQuantity(Integer bookQuantity){
		this.bookQuantity=bookQuantity;
	}
	public Integer getBookQuantity(){
		return bookQuantity;
	}
	public void setWarnStock(Integer warnStock){
		this.warnStock=warnStock;
	}
	public Integer getWarnStock(){
		return warnStock;
	}
	public void setIsSale(Integer isSale){
		this.isSale=isSale;
	}
	public Integer getIsSale(){
		return isSale;
	}
	public void setSaleTime(Date saleTime){
		this.saleTime=saleTime;
	}
	public Date getSaleTime(){
		return saleTime;
	}
	public void setIsBest(Integer isBest){
		this.isBest=isBest;
	}
	public Integer getIsBest(){
		return isBest;
	}
	public void setIsHot(Integer isHot){
		this.isHot=isHot;
	}
	public Integer getIsHot(){
		return isHot;
	}
	public void setIsNew(Integer isNew){
		this.isNew=isNew;
	}
	public Integer getIsNew(){
		return isNew;
	}
	public void setIsAdminRecom(Integer isAdminRecom){
		this.isAdminRecom=isAdminRecom;
	}
	public Integer getIsAdminRecom(){
		return isAdminRecom;
	}
	public void setRecommDesc(String recommDesc){
		this.recommDesc=recommDesc;
	}
	public String getRecommDesc(){
		return recommDesc;
	}
	public void setGoodsTypeId(Integer goodsTypeId){
		this.goodsTypeId=goodsTypeId;
	}
	public Integer getGoodsTypeId(){
		return goodsTypeId;
	}
	public void setGoodsDesc(String goodsDesc){
		this.goodsDesc=goodsDesc;
	}
	public String getGoodsDesc(){
		return goodsDesc;
	}
	public void setGoodsKeywords(String goodsKeywords){
		this.goodsKeywords=goodsKeywords;
	}
	public String getGoodsKeywords(){
		return goodsKeywords;
	}
	public void setGoodsFlag(Integer goodsFlag){
		this.goodsFlag=goodsFlag;
	}
	public Integer getGoodsFlag(){
		return goodsFlag;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}
	public Date getCreateTime(){
		return createTime;
	}
	public String toString(){
		return "Goods [goodsId=" + goodsId + ", goodsSn=" + goodsSn + ", goodsName=" + goodsName + ", goodsImg=" + goodsImg + ", goodsThums=" + goodsThums + ", brandId=" + brandId + ", marketPrice=" + marketPrice + ", shopPrice=" + shopPrice + ", goodsStock=" + goodsStock + ", saleCount=" + saleCount + ", isBook=" + isBook + ", bookQuantity=" + bookQuantity + ", warnStock=" + warnStock + ", isSale=" + isSale + ", saleTime=" + saleTime + ", isBest=" + isBest + ", isHot=" + isHot + ", isNew=" + isNew + ", isAdminRecom=" + isAdminRecom + ", recommDesc=" + recommDesc + ", goodsTypeId=" + goodsTypeId + ", goodsDesc=" + goodsDesc + ", goodsKeywords=" + goodsKeywords + ", goodsFlag=" + goodsFlag + ", createTime=" + createTime + "]";
	}
}

